using Opc.Ua;

namespace HslCommunicationEx.OpcUa
{
	public class MethodCallResult
	{
		public Variant results;

		public string status = string.Empty;

		public string ErrorMsg = "";

		public MethodCallResult()
		{
		}

		public MethodCallResult(CallMethodResultCollection resultCollections)
		{
			this.status = resultCollections[0].StatusCode.ToString();
			if (resultCollections[0].OutputArguments.Count > 0)
			{
				this.results = resultCollections[0].OutputArguments[0];
			}
		}
	}
}
